# Contributor: Dhruvin Gandhi <contact@dhruvin.dev>
# Maintainer: Dhruvin Gandhi <contact@dhruvin.dev>
pkgname=py3-sphinx-click
_pyname=sphinx-click
pkgver=3.0.2
pkgrel=0
pkgdesc="Sphinx plugin to extract documentation from click-based applications"
url="https://github.com/click-contrib/sphinx-click"
arch="noarch"
license="MIT"
depends="python3 py3-sphinx py3-click py3-docutils"
makedepends="py3-setuptools py3-pbr"
checkdepends="py3-pytest py3-click py3-coverage"
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
dcf60ca31dcc7c1f45157ed88a5d723d8b531f01b617fb0cc4ada8f09c709b23b55a86bcf8bbe66bf4c2f5ef77329123d271724887022a43b86747087e87ed7c  sphinx-click-3.0.2.tar.gz
"
